for a in range(1, 10):
    for b in range(1,10):
        if a>=b:
            print("{}*{}={}".format(b,a,a*b),end=" ")
        if a==b:
            print("  ")